﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000259 RID: 601
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueLineupInfo : IMessage<ChessRogueLineupInfo>, IMessage, IEquatable<ChessRogueLineupInfo>, IDeepCloneable<ChessRogueLineupInfo>, IBufferMessage
	{
		// Token: 0x170007F8 RID: 2040
		// (get) Token: 0x06001B2D RID: 6957 RVA: 0x0004E8A3 File Offset: 0x0004CAA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueLineupInfo> Parser
		{
			get
			{
				return ChessRogueLineupInfo._parser;
			}
		}

		// Token: 0x170007F9 RID: 2041
		// (get) Token: 0x06001B2E RID: 6958 RVA: 0x0004E8AA File Offset: 0x0004CAAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueLineupInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007FA RID: 2042
		// (get) Token: 0x06001B2F RID: 6959 RVA: 0x0004E8BC File Offset: 0x0004CABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueLineupInfo.Descriptor;
			}
		}

		// Token: 0x06001B30 RID: 6960 RVA: 0x0004E8C3 File Offset: 0x0004CAC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLineupInfo()
		{
		}

		// Token: 0x06001B31 RID: 6961 RVA: 0x0004E8D8 File Offset: 0x0004CAD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLineupInfo(ChessRogueLineupInfo other) : this()
		{
			this.chessAvatarList_ = other.chessAvatarList_.Clone();
			this.reviveInfo_ = ((other.reviveInfo_ != null) ? other.reviveInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001B32 RID: 6962 RVA: 0x0004E929 File Offset: 0x0004CB29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLineupInfo Clone()
		{
			return new ChessRogueLineupInfo(this);
		}

		// Token: 0x170007FB RID: 2043
		// (get) Token: 0x06001B33 RID: 6963 RVA: 0x0004E931 File Offset: 0x0004CB31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueLineupAvatarInfo> ChessAvatarList
		{
			get
			{
				return this.chessAvatarList_;
			}
		}

		// Token: 0x170007FC RID: 2044
		// (get) Token: 0x06001B34 RID: 6964 RVA: 0x0004E939 File Offset: 0x0004CB39
		// (set) Token: 0x06001B35 RID: 6965 RVA: 0x0004E941 File Offset: 0x0004CB41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAvatarReviveCost ReviveInfo
		{
			get
			{
				return this.reviveInfo_;
			}
			set
			{
				this.reviveInfo_ = value;
			}
		}

		// Token: 0x06001B36 RID: 6966 RVA: 0x0004E94A File Offset: 0x0004CB4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueLineupInfo);
		}

		// Token: 0x06001B37 RID: 6967 RVA: 0x0004E958 File Offset: 0x0004CB58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueLineupInfo other)
		{
			return other != null && (other == this || (this.chessAvatarList_.Equals(other.chessAvatarList_) && object.Equals(this.ReviveInfo, other.ReviveInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001B38 RID: 6968 RVA: 0x0004E9AC File Offset: 0x0004CBAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.chessAvatarList_.GetHashCode();
			if (this.reviveInfo_ != null)
			{
				num ^= this.ReviveInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001B39 RID: 6969 RVA: 0x0004E9F6 File Offset: 0x0004CBF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001B3A RID: 6970 RVA: 0x0004E9FE File Offset: 0x0004CBFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001B3B RID: 6971 RVA: 0x0004EA08 File Offset: 0x0004CC08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.chessAvatarList_.WriteTo(ref output, ChessRogueLineupInfo._repeated_chessAvatarList_codec);
			if (this.reviveInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.ReviveInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001B3C RID: 6972 RVA: 0x0004EA58 File Offset: 0x0004CC58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.chessAvatarList_.CalculateSize(ChessRogueLineupInfo._repeated_chessAvatarList_codec);
			if (this.reviveInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReviveInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001B3D RID: 6973 RVA: 0x0004EAAC File Offset: 0x0004CCAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueLineupInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.chessAvatarList_.Add(other.chessAvatarList_);
			if (other.reviveInfo_ != null)
			{
				if (this.reviveInfo_ == null)
				{
					this.ReviveInfo = new RogueAvatarReviveCost();
				}
				this.ReviveInfo.MergeFrom(other.ReviveInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001B3E RID: 6974 RVA: 0x0004EB11 File Offset: 0x0004CD11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001B3F RID: 6975 RVA: 0x0004EB1C File Offset: 0x0004CD1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 50U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reviveInfo_ == null)
						{
							this.ReviveInfo = new RogueAvatarReviveCost();
						}
						input.ReadMessage(this.ReviveInfo);
					}
				}
				else
				{
					this.chessAvatarList_.AddEntriesFrom(ref input, ChessRogueLineupInfo._repeated_chessAvatarList_codec);
				}
			}
		}

		// Token: 0x04000B67 RID: 2919
		private static readonly MessageParser<ChessRogueLineupInfo> _parser = new MessageParser<ChessRogueLineupInfo>(() => new ChessRogueLineupInfo());

		// Token: 0x04000B68 RID: 2920
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B69 RID: 2921
		public const int ChessAvatarListFieldNumber = 1;

		// Token: 0x04000B6A RID: 2922
		private static readonly FieldCodec<ChessRogueLineupAvatarInfo> _repeated_chessAvatarList_codec = FieldCodec.ForMessage<ChessRogueLineupAvatarInfo>(10U, ChessRogueLineupAvatarInfo.Parser);

		// Token: 0x04000B6B RID: 2923
		private readonly RepeatedField<ChessRogueLineupAvatarInfo> chessAvatarList_ = new RepeatedField<ChessRogueLineupAvatarInfo>();

		// Token: 0x04000B6C RID: 2924
		public const int ReviveInfoFieldNumber = 6;

		// Token: 0x04000B6D RID: 2925
		private RogueAvatarReviveCost reviveInfo_;
	}
}
